package com.diandian.backend.log.dto;

import com.diandian.base.boot.starter.exception.DefaultException;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

public class LogTaskDeleteByIdParamDTO implements Serializable {

	private Long id;
	private String belong;
	private String businessType;
	private String businessId;
	private String taskId;
	private String taskName;
	private Double percent;
	private String status;
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date expectedEndTime;
	private String remark;
	private String createUserId;
	private String createUserName;
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date createTime;
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date updateTime;
	private Integer del;

	public void check() {
		if (id == null || "".equals(id)) {
			throw new DefaultException("id不能为空");
		}
	}

	public Long getId() {
		return id;
	}
	public Long setId(Long id) {
		return this.id = id;
	}
	public String getBelong() {
		return belong;
	}
	public String setBelong(String belong) {
		return this.belong = belong;
	}
	public String getBusinessType() {
		return businessType;
	}
	public String setBusinessType(String businessType) {
		return this.businessType = businessType;
	}
	public String getBusinessId() {
		return businessId;
	}
	public String setBusinessId(String businessId) {
		return this.businessId = businessId;
	}
	public String getTaskId() {
		return taskId;
	}
	public String setTaskId(String taskId) {
		return this.taskId = taskId;
	}
	public String getTaskName() {
		return taskName;
	}
	public String setTaskName(String taskName) {
		return this.taskName = taskName;
	}
	public Double getPercent() {
		return percent;
	}
	public Double setPercent(Double percent) {
		return this.percent = percent;
	}
	public String getStatus() {
		return status;
	}
	public String setStatus(String status) {
		return this.status = status;
	}
	public Date getExpectedEndTime() {
		return expectedEndTime;
	}
	public Date setExpectedEndTime(Date expectedEndTime) {
		return this.expectedEndTime = expectedEndTime;
	}
	public String getRemark() {
		return remark;
	}
	public String setRemark(String remark) {
		return this.remark = remark;
	}
	public String getCreateUserId() {
		return createUserId;
	}
	public String setCreateUserId(String createUserId) {
		return this.createUserId = createUserId;
	}
	public String getCreateUserName() {
		return createUserName;
	}
	public String setCreateUserName(String createUserName) {
		return this.createUserName = createUserName;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public Date setCreateTime(Date createTime) {
		return this.createTime = createTime;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public Date setUpdateTime(Date updateTime) {
		return this.updateTime = updateTime;
	}
	public Integer getDel() {
		return del;
	}
	public Integer setDel(Integer del) {
		return this.del = del;
	}
}
